package com.springboot.test.enums;

/**
 * @name:
 * @desc:
 * @author: qk on 2017/8/12 19:01.
 */
public enum ResultEnum {
    INNER_ERROR(-1, "内部错误"),
    SUCCESS(0, "成功"),
    YOUNG(100, "您是青年"),
    MIDDLE(101, "您是中年"),
    OLD(102, "您是老年")
    ;

    private Integer code;

    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
